These are the files necessary for replicating the results of "Bean Counters: The Effect of Soy Tariffs on Change in Republican Vote Share between the 2016 and 2018 Elections"
Authors: Olga V. Chyzh and R. Urbatsch

The analysis for this paper was performed in RStudio (Version 1.2.1335). The following is the list of the necessary packages: dplyr, ggplot2, maps, mapdata, mapproj, tidyverse, magrittr, scales, MASS, lme4
spdep, spatialreg, cem, optmatch, RItools. Please note that, due to clashes between some of these packages, rather than loading all of them at once, they are loaded and detached as necessary throughout the script.


These replication files include the following:
1. JOP_repl.Rmd--an R script that runs all the analysis.
2. soydata.csv--the data used in the study
3. fixeff.csv--the data on state-level fixed effects
4. contigmat.txt--county contiguity data used in spatial models
5. map_votech1.pdf--Figure 1
6. soybean_map2.pdf--Figure 2
7. fitted2.pdf--Figure 3
8. matchplot.jpg--Figure 4


